package td.pt.widget.cell;

import td.domain.Thought;

import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.uibinder.client.UiRenderer;

public class ThoughtListing extends AbstractCell<Thought> {

	interface ThoughtListingUiRenderer extends UiRenderer {
		void render(SafeHtmlBuilder sb, Thought thought);
	}

	private static ThoughtListingUiRenderer renderer = GWT
			.create(ThoughtListingUiRenderer.class);

	public ThoughtListing() {
	}

	@Override
	public void render(Context context, Thought thought, SafeHtmlBuilder builder) {
		renderer.render(builder, thought);
	}

}
